package com.zjcode.cdcer.service.impl;

import com.zjcode.cdcer.mapper.CerFileImpRecordMapper;
import com.zjcode.cdcer.model.CerFileImpRecord;
import com.zjcode.cdcer.service.CerFileImpRecordService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName:CerFileImpRecordServiceImpl
 * @功能：
 * @author：wlei
 * @日期：2022/7/24-23:31
 **/
@Service
public class CerFileImpRecordServiceImpl implements CerFileImpRecordService {

    @Autowired
    private CerFileImpRecordMapper fileImpRecordMapper;

    @Override
    public CerFileImpRecord findByTradeNo(String tradeNo) {
        return fileImpRecordMapper.selectByTradeNo(tradeNo);
    }

    @Override
    public int updateRecord(CerFileImpRecord record) {
        return fileImpRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<CerFileImpRecord> findAllByIds(List<String> ids) {
        return fileImpRecordMapper.selectAllByIdIn(ids);
    }

}
